import { defineStore } from 'pinia'
import { ref } from 'vue'

const useChangeShowStore = defineStore('changeShow', () => {

  const isShow = ref(true)
  const display = ref(true)
  const Text = ref<string>('密码登录')

  const changeShow = () => {
    isShow.value = !isShow.value
  }
  const changeButtonDispaly = (val: boolean) => {
    display.value = val
  }


  const changeText = () => {
    Text.value = isShow.value ? '密码登录' : '短信登录'
    // console.log(isShow.value)
  }




  return {
    isShow,
    display,
    changeShow,
    changeButtonDispaly,
    Text,
    changeText,


  }
})

export default useChangeShowStore